package com.chhuang.system.po;

import java.util.ArrayList;
import java.util.List;

/**
* ChRoleMenuMap ModelExample
* @author ChHuang
* @date Fri Mar 03 14:48:29 CST 2017
*/
public class ChRoleMenuMapExample {
	protected String orderByClause;
	protected boolean distinct;
	protected List<Criteria> oredCriteria;
	private Integer limit;
	private Integer offset;
	public ChRoleMenuMapExample() {
		oredCriteria = new ArrayList<Criteria>();
	}
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}
	public String getOrderByClause() {
		return orderByClause;
	}
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}
	public boolean isDistinct() {
		return distinct;
	}
	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}
	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}
	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}
	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}
	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}
	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	public Integer getLimit() {
		return limit;
	}
	public void setOffset(Integer offset) {
		this.offset = offset;
	}
	public Integer getOffset() {
		return offset;
	}
	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;
		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}
		public boolean isValid() {
			return criteria.size() > 0;
		}
		public List<Criterion> getAllCriteria() {
			return criteria;
		}
		public List<Criterion> getCriteria() {
			return criteria;
		}
		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}
		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}
		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}
		
		public Criteria andRoleMenuMapIdIsNull() {
            addCriterion("ROLE_MENU_MAP_ID is null");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdIsNotNull() {
            addCriterion("ROLE_MENU_MAP_ID is not null");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdEqualTo(String value) {
            addCriterion("ROLE_MENU_MAP_ID =", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdNotEqualTo(String value) {
            addCriterion("ROLE_MENU_MAP_ID <>", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdGreaterThan(String value) {
            addCriterion("ROLE_MENU_MAP_ID >", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdGreaterThanOrEqualTo(String value) {
            addCriterion("ROLE_MENU_MAP_ID >=", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdLessThan(String value) {
            addCriterion("ROLE_MENU_MAP_ID <", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdLessThanOrEqualTo(String value) {
            addCriterion("ROLE_MENU_MAP_ID <=", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdLike(String value) {
            addCriterion("ROLE_MENU_MAP_ID like", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdNotLike(String value) {
            addCriterion("ROLE_MENU_MAP_ID not like", value, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdIn(List<String> values) {
            addCriterion("ROLE_MENU_MAP_ID in", values, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdNotIn(List<String> values) {
            addCriterion("ROLE_MENU_MAP_ID not in", values, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdBetween(String value1, String value2) {
            addCriterion("ROLE_MENU_MAP_ID between", value1, value2, "roleMenuMapId");
            return (Criteria) this;
        }
        public Criteria andRoleMenuMapIdNotBetween(String value1, String value2) {
            addCriterion("ROLE_MENU_MAP_ID not between", value1, value2, "roleMenuMapId");
            return (Criteria) this;
        }
		public Criteria andRoleIdIsNull() {
            addCriterion("ROLE_ID is null");
            return (Criteria) this;
        }
        public Criteria andRoleIdIsNotNull() {
            addCriterion("ROLE_ID is not null");
            return (Criteria) this;
        }
        public Criteria andRoleIdEqualTo(String value) {
            addCriterion("ROLE_ID =", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdNotEqualTo(String value) {
            addCriterion("ROLE_ID <>", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdGreaterThan(String value) {
            addCriterion("ROLE_ID >", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdGreaterThanOrEqualTo(String value) {
            addCriterion("ROLE_ID >=", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdLessThan(String value) {
            addCriterion("ROLE_ID <", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdLessThanOrEqualTo(String value) {
            addCriterion("ROLE_ID <=", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdLike(String value) {
            addCriterion("ROLE_ID like", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdNotLike(String value) {
            addCriterion("ROLE_ID not like", value, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdIn(List<String> values) {
            addCriterion("ROLE_ID in", values, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdNotIn(List<String> values) {
            addCriterion("ROLE_ID not in", values, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdBetween(String value1, String value2) {
            addCriterion("ROLE_ID between", value1, value2, "roleId");
            return (Criteria) this;
        }
        public Criteria andRoleIdNotBetween(String value1, String value2) {
            addCriterion("ROLE_ID not between", value1, value2, "roleId");
            return (Criteria) this;
        }
		public Criteria andMenuIdIsNull() {
            addCriterion("MENU_ID is null");
            return (Criteria) this;
        }
        public Criteria andMenuIdIsNotNull() {
            addCriterion("MENU_ID is not null");
            return (Criteria) this;
        }
        public Criteria andMenuIdEqualTo(String value) {
            addCriterion("MENU_ID =", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdNotEqualTo(String value) {
            addCriterion("MENU_ID <>", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdGreaterThan(String value) {
            addCriterion("MENU_ID >", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdGreaterThanOrEqualTo(String value) {
            addCriterion("MENU_ID >=", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdLessThan(String value) {
            addCriterion("MENU_ID <", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdLessThanOrEqualTo(String value) {
            addCriterion("MENU_ID <=", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdLike(String value) {
            addCriterion("MENU_ID like", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdNotLike(String value) {
            addCriterion("MENU_ID not like", value, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdIn(List<String> values) {
            addCriterion("MENU_ID in", values, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdNotIn(List<String> values) {
            addCriterion("MENU_ID not in", values, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdBetween(String value1, String value2) {
            addCriterion("MENU_ID between", value1, value2, "menuId");
            return (Criteria) this;
        }
        public Criteria andMenuIdNotBetween(String value1, String value2) {
            addCriterion("MENU_ID not between", value1, value2, "menuId");
            return (Criteria) this;
        }
		public Criteria andMenuOrderIsNull() {
            addCriterion("MENU_ORDER is null");
            return (Criteria) this;
        }
        public Criteria andMenuOrderIsNotNull() {
            addCriterion("MENU_ORDER is not null");
            return (Criteria) this;
        }
        public Criteria andMenuOrderEqualTo(Integer value) {
            addCriterion("MENU_ORDER =", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderNotEqualTo(Integer value) {
            addCriterion("MENU_ORDER <>", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderGreaterThan(Integer value) {
            addCriterion("MENU_ORDER >", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("MENU_ORDER >=", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderLessThan(Integer value) {
            addCriterion("MENU_ORDER <", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderLessThanOrEqualTo(Integer value) {
            addCriterion("MENU_ORDER <=", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderLike(Integer value) {
            addCriterion("MENU_ORDER like", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderNotLike(Integer value) {
            addCriterion("MENU_ORDER not like", value, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderIn(List<Integer> values) {
            addCriterion("MENU_ORDER in", values, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderNotIn(List<Integer> values) {
            addCriterion("MENU_ORDER not in", values, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderBetween(Integer value1, Integer value2) {
            addCriterion("MENU_ORDER between", value1, value2, "menuOrder");
            return (Criteria) this;
        }
        public Criteria andMenuOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("MENU_ORDER not between", value1, value2, "menuOrder");
            return (Criteria) this;
        }
		public Criteria andRoleOrderIsNull() {
            addCriterion("ROLE_ORDER is null");
            return (Criteria) this;
        }
        public Criteria andRoleOrderIsNotNull() {
            addCriterion("ROLE_ORDER is not null");
            return (Criteria) this;
        }
        public Criteria andRoleOrderEqualTo(Integer value) {
            addCriterion("ROLE_ORDER =", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderNotEqualTo(Integer value) {
            addCriterion("ROLE_ORDER <>", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderGreaterThan(Integer value) {
            addCriterion("ROLE_ORDER >", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("ROLE_ORDER >=", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderLessThan(Integer value) {
            addCriterion("ROLE_ORDER <", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderLessThanOrEqualTo(Integer value) {
            addCriterion("ROLE_ORDER <=", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderLike(Integer value) {
            addCriterion("ROLE_ORDER like", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderNotLike(Integer value) {
            addCriterion("ROLE_ORDER not like", value, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderIn(List<Integer> values) {
            addCriterion("ROLE_ORDER in", values, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderNotIn(List<Integer> values) {
            addCriterion("ROLE_ORDER not in", values, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderBetween(Integer value1, Integer value2) {
            addCriterion("ROLE_ORDER between", value1, value2, "roleOrder");
            return (Criteria) this;
        }
        public Criteria andRoleOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("ROLE_ORDER not between", value1, value2, "roleOrder");
            return (Criteria) this;
        }
	}
	/**
	 */
	public static class Criteria extends GeneratedCriteria {
	protected Criteria() {
			super();
		}
	}
	public static class Criterion {
		private String condition;
		private Object value;
		private Object secondValue;
		private boolean noValue;
		private boolean singleValue;
		private boolean betweenValue;
		private boolean listValue;
		private String typeHandler;
		public String getCondition() {
			return condition;
		}
		public Object getValue() {
			return value;
		}
		public Object getSecondValue() {
			return secondValue;
		}
		public boolean isNoValue() {
			return noValue;
		}
		public boolean isSingleValue() {
			return singleValue;
		}
		public boolean isBetweenValue() {
			return betweenValue;
		}
		public boolean isListValue() {
			return listValue;
		}
		public String getTypeHandler() {
			return typeHandler;
		}
		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}
		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}
		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}
		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}
		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}